string input; // this is your input string string output = new string(input.Where(c => !char.IsControl(c)).ToArray());